<?php

namespace App\Admin\Actions\Grid;

use Dcat\Admin\Actions\Response;
use Dcat\Admin\Grid\Tools\AbstractTool;
use Dcat\Admin\Traits\HasPermissions;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use App\Admin\Actions\Form\AlarmSettingUploadForm;
use Dcat\Admin\Widgets\Modal;
use Dcat\Admin\Admin;

class AlarmSettingUpload extends AbstractTool
{
    public function html()
    {
        $modal = Modal::make()
            ->lg()->centered()
            ->body(AlarmSettingUploadForm::make()->payload(['boxId' => $this->getKey()]))
            ->button('<button class="btn btn-primary">上传</button>');

        return $modal;
    }
}
